#include "common.h"

void moveZeroes(vector<int>& nums)
{
	int n = nums.size();
	int p1 = -1;
	int p2 = 0;
	for (; p2 < n; p2++)
	{
		if (nums[p2] != 0)
		{
			swap(nums[p1 + 1], nums[p2]);
			p1++;
		}
	}
}